package day1.demo1_arraylist;

import java.util.ArrayList;
import java.util.List;
import java.util.Vector;

public class Test2 {
    public static void main(String[] args) {
//        List<String> list = new ArrayList<>();
        List<String> list = new Vector<>();
        list.add("one");
        list.add("two");
        list.add("three");
        list.add("four");

        String join = String.join(",", list);
        System.out.println(join);
        System.out.println(list.toArray());
        list.set(0,"hello");
        System.out.println(list.get(0));
    }
}
